From 4e742d93a1040fb0d5f4e7f0820aea2e364b2ff7 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 14 Nov 2002 05:17:08 +0000 Subject: [PATCH] Make debug levels more sensible. --- gpsbabel/garmin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index dd969665a..0e72b7c38 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -29,11 +29,14 @@ static const char *portname; static void rw_init(const char *fname, const char *opts) { - if (global_opts.debug_level > 1) { + if (global_opts.debug_level > 0) { GPS_Enable_Warning(); GPS_Enable_User(); GPS_Enable_Diagnose(); } + if (global_opts.debug_level > 1) { + GPS_Enable_Diagnose(); + } GPS_Enable_Error(); if (GPS_Init(fname) < 0) { -- 2.30.2